package com.campus.dao;

import java.util.List;

import com.campus.dto.ClassConditionDto;
import com.campus.model.Class;

public interface ClassDao {
    // 检查活动是否已发布
    boolean isActivityPublished(int activityId);
    int createClass(Class clazz);
    int updateClass(Class clazz);
    List<Class> getClassesByActivityId(int activityId);
    // 检查课程名称是否重复
    boolean isClassNameDuplicate(String className, int activityId);
    int deleteClass(int classId);
    List<Class> getClassesByCondition(ClassConditionDto condition);
    // 查询所有教学班
    List<Class> findAllClasses();
}
